<!DOCTYPE html>
<html>
<head>
<title>按钮事件</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn" style="height:34px;">
			<div style="float: left">
				<input class="form-control" style="width: 120px" v-model="q.userId" placeholder="用户ID" />
			</div>
			<p style="float: left">&nbsp;</p>
			<div style="float: left">
				<select style="height: 34px;" id="selectUserGzhList" v-model="q.gzhCode">

				</select>
			</div>
			<p style="float: left">&nbsp;</p>
			<div style="float: left">
				<select style="height: 34px" v-model="q.eventCode">
					<option value="">全部事件</option>
					<!--<option value="K0002">点击客户页“我要追踪客户”</option>-->
					<option value="K0003">点击文章库底部“去开通”</option>
					<option value="K0006">点击个人中心“开通会员”</option>
					<option value="K0011">点击“领取红包”</option>
					<option value="K0012">点击海报上传“去开通”</option>
					<option value="K0013">点击VIP名片“开通会员”</option>
					<option value="K0014">邀请按钮设置"去开通"</option>
					<option value="K0015">公开我的分享内容"去开通"</option>
				</select>
			</div>
			<p style="float: left">&nbsp;</p>
			<div style="float: left">
				起始时间：<input type="date" v-model="q.startDate" style="height: 34px;" placeholder="起始时间"/>
				截止时间：<input type="date" v-model="q.endDate" style="height: 34px;" placeholder="截止时间"/>
			</div>
			<p style="float: left">&nbsp;</p>
			<a class="btn btn-default" @click="query"><i class="fa fa-search" aria-hidden="true"></i>&nbsp;查询</a>
		</div>
	    <table id="jqGrid"></table>
	    <!--<div id="jqGridPager"></div>-->
	</div>
	<div v-show="!showList">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">ID</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="buttonEventInfo.id" placeholder="ID" readonly />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">用户ID</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="buttonEventInfo.userid" placeholder="用户ID" readonly />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">用户名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="buttonEventInfo.userName" placeholder="用户名称" readonly />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">事件名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="buttonEventInfo.eventname" placeholder="事件名称" readonly />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">公众号</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="buttonEventInfo.gzhName" placeholder="公众号" readonly />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">创建时间</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="buttonEventInfo.createtime" placeholder="创建时间" readonly />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">跟进状态</div>
				<div class="col-sm-10">
					<input name="followStatus" type="radio" value="1" v-model="buttonEventInfo.followstatus" disabled />已跟进
					<input name="followStatus" type="radio" value="0" v-model="buttonEventInfo.followstatus" disabled />未跟进
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">跟进人</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="buttonEventInfo.followusername" placeholder="跟进人" readonly />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">跟进时间</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="buttonEventInfo.followtime" placeholder="跟进时间" readonly />
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">备注</div>
				<div class="col-sm-10">
					<textarea class="form-control" rows="3" v-model="buttonEventInfo.remarks" placeholder="备注"></textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<button type="button" class="btn btn-primary" id="followButton" @click="updateFollowStatus()" >跟进</button>
				<button type="button" class="btn btn-warning" @click="cancle()" >返回</button>
			</div>
		</form>
	</div>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/buttoneventfollow.js?_${.now?long}"></script>
</body>
</html>